#!/usr/bin/python3
# -*- coding: utf-8 -*-

from pathlib import Path

PROJECT_PATH = Path(__file__).parent.parent

# 缓存目录
CACHE_DIR = PROJECT_PATH / "auth" / "cache"

# 用例数据的目录
DATA_DIR = PROJECT_PATH / "datas"

# 日志文件目录
LOG_DIR = PROJECT_PATH / "logs"

# 测试报告的路
REPORT_DIR = PROJECT_PATH / "reports"

# 测试日志目录
LOG_DOR = PROJECT_PATH / "logs"

# 测试日志名称
LOG_FILE = LOG_DOR / "test.log"

# 配置文件目录
CONFIG_DIR = PROJECT_PATH / "config"

# 测试用例模块所在的目录
CASE_DIR = PROJECT_PATH / "testcases"

# 测试痕迹、截图、视频目录
TRACE_DIR = PROJECT_PATH / "test-results"

# cookies目录
COOKIES = PROJECT_PATH / "auth" / "login.json"

# 配置文件
CONFIG_YAML = CONFIG_DIR / "config.yaml"
SERVER_YAML = CONFIG_DIR / "server.yaml"
NOTIFICATION_YAML = CONFIG_DIR / "notification.yaml"

# 下载文件路径
DOWNLOAD_DIR = DATA_DIR / "download"

# 数据库文件
DB = PROJECT_PATH / "databases" / "pitrix-ui.db"

# allure json目录
ALLURE_JSON = REPORT_DIR / "json"

# allure report 目录
ALLURE_REPORT = REPORT_DIR / "allure-report"

# allure_summary_file
ALLURE_SUMMARY_FILE = ALLURE_REPORT / "widgets" / "summary.json"

# pytest-html
PYTEST_HTML = REPORT_DIR / "pytest-report" / "reports.html"
